import Vue from 'vue'
import Router from 'vue-router'
import Main from "../components/Main";
import Home from "../components/view/Home";

import Login from "../components/Login";
import ChoseCourse from "../components/view/student/ChoseCourse";
import Course from "../components/view/student/Course";
import CourseTable from "../components/view/student/CourseTable";
import StudentScore from "../components/view/student/StudentScore";
import StudentInfo from "../components/view/student/StudentInfo";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
    },
    {
      path: '/Main',
      name: 'Main',
      component: Main,
      children: [
        {
          path: '/',
          name: 'Home',
          component: Home
        },
        {
          path: '/ChoseCourse',
          name: 'ChoseCourse',
          component: ChoseCourse
        },
        {
          path: '/Course',
          name: 'Course',
          component: Course
        },
        {
          path: '/CourseTable',
          name: 'CourseTable',
          component: CourseTable
        },
        {
          path: '/StudentScore',
          name: 'StudentScore',
          component: StudentScore
        },
        {
          path: '/StudentInfo',
          name: 'StudentInfo',
          component: StudentInfo
        }
      ]
    }
  ]


})
